function handleClick() {
	
	var oRow;
    var id;
    if (arguments.length==0)
            return;
    oRow=arguments[0];
    var examId=oRow.cells(1).innerText;
    
    parent.document.getElementById("examId").value = examId;
    
    var admissionYear = parent.document.getElementById("admissionYear").value;
    var specialityId = parent.document.getElementById("specialityId").value;
    var courseScheduleId = parent.document.getElementById("courseScheduleId").value;
    
	var url = "../../dbgrid.list?dbgrid=COM_Student_Exam&specialityId=" 
		+ specialityId + "&admissionYear=" + admissionYear + "&examId=" + examId;
		
	
	showDialog(url, courseScheduleId,"450px", "500px");
}

function handleDblClick() {
	var oRow;
    var id;
    if (arguments.length==0)
            return;
    oRow=arguments[0];
    var examId=oRow.cells(1).innerText;
    var courseScheduleId = parent.document.getElementById("courseScheduleId").value;
    
    var url = "/schoolstatue/courseManage/courseManage.do?method=displayExam&courseScheduleId=" + courseScheduleId
    		+ "&examId=" + examId;
    showDialog(url,null,"450px","210px");
	parent.frames("examFrm").location.reload();
}